package com.qf.oop.extend;

public class AnimalDemo {
    public static void main(String[] args) {
        Animal animal = new Animal();
        animal.setSex("公");
        animal.breed = "品种1";

        animal.sleep();
        animal.eat();

//        animal.test1();

        // 是否有继承的Object中的属性或者方法呢？
//        int i = animal.hashCode();
//        System.out.println(i);
    }
}
